package cn.jbit.entitys;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "common-user",shards = 1,replicas = 0)
public class User {

    @Id
    private  String id;

    @Field(type = FieldType.Text)
    private  String username;

    @Field(type = FieldType.Text)
    private  String password;

    @Field(type = FieldType.Integer)
    private  Integer age;

    @Field(type = FieldType.Text)
    private  String  tags;

}
